package com.baosight.risk.mapper.xtzy;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baosight.risk.base.mapper.BaseMapper;
import com.baosight.risk.service.system.entity.SysRole;
import com.baosight.risk.service.xtzy.entity.XtzyCompRole;

public interface XtzyCompRoleMapper extends BaseMapper<XtzyCompRole> {

    List<SysRole> getRoleByCompId(@Param("compId") String compId, @Param("roleName") String roleName);

    XtzyCompRole queryRoleByCompIdAndRoleId(@Param("compId") String compId, @Param("roleId") String roleId);

    Integer deleteByCompIdAndRoleId(@Param("compId") String compId, @Param("roleId") String roleId);
}